<?php echo $this->fetch('member.header.html'); ?>
<div id="page-my-qa" class="mb10">
	<article class="padding10 page-body">
    	<?php $_from = $this->_var['my_qa_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'my_qa_list');$this->_foreach['qa'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['qa']['total'] > 0):
    foreach ($_from AS $this->_var['my_qa_list']):
        $this->_foreach['qa']['iteration']++;
?>
		<ul>
        	<li><a href="<?php echo url('app=goods&=&id=' . $this->_var['my_qa_list']['item_id']. ''); ?>"><?php echo $this->_var['my_qa_list']['item_name']; ?><em>[<?php echo $this->_var['lang'][$this->_var['my_qa_list']['type']]; ?>]</em></a></li>
        	<li class="clearfix mt10 webkit-box">
            	<span><img width="50" height="50" src="<?php echo $this->_var['my_qa_list']['store_logo']; ?>" /><?php echo htmlspecialchars($this->_var['my_qa_list']['store_name']); ?></span>
            	<div class="qa-box">
                	<dl>
                        <dd style="color:#E4393C;">我的咨询：<?php echo htmlspecialchars($this->_var['my_qa_list']['question_content']); ?></dd>
                        <dd class="time mt5"><?php echo local_date("Y-m-d H:i:s",$this->_var['my_qa_list']['time_post']); ?></dd>
                        <?php if ($this->_var['my_qa_list']['reply_content']): ?>
                        <dd class="mt5" style="color:#289039;">商家的答复：<?php echo htmlspecialchars($this->_var['my_qa_list']['reply_content']); ?></dd>
                        <dd class="time mt5"><?php echo local_date("Y-m-d H:i:s",$this->_var['my_qa_list']['time_reply']); ?></dd>
                        <?php endif; ?>
                    </dl>
                </div>
            </li>
        </ul>
        <?php endforeach; else: ?>
        <div class="no-record">
             <span><?php echo $this->_var['lang'][$_GET['act']]; ?>没有符合条件的记录</span>
        </div>
        <?php endif; unset($_from); ?><?php $this->pop_vars();; ?> 
	</article>
    <?php if ($this->_var['my_qa_data']): ?>
    <?php echo $this->fetch('page.bottom.html'); ?>
    <?php endif; ?>
</div>
<?php echo $this->fetch('footer.html'); ?>
